<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title></title>
		<link rel="stylesheet" href="<%=path %>/res/common/bootstrap-3.3.7-dist/css/bootstrap.min.css" />
	</head>
	<body>
	<table class="table table-striped">
		<tr>
			<th colspan="7" style="text-align: center;">数据列表</th>
		</tr>
		<tr>
			<th colspan="7">


				<form
					action="<%=path %>/recordSearchPost.do"
					method="post" class="navbar-form ">

					<input type="text" name="studentSearch" id="studentSearch"
						value="${studentSearch}" class="form-control"
						placeholder="姓名">
						
					<input type="text" name="keyWordSearch" id="keyWordSearch"
						value="${keyWordSearch}" class="form-control"
						placeholder="文章">

					<button type="submit" class="btn btn-default">搜索</button>
				</form>
			</th>
		</tr>
		<tr>
			<td>序号</td>
			<td>博客标题</td>
			<td>姓名</td>
			<td>博客更新时间</td>
			<td>博客阅读数</td>
			<td>博客评论数</td>
			<td>操作</td>
			</tr>
			<c:forEach var="vo" items="${list}" varStatus="vs">
			<tr>
			<td>
				${vs.index+1}
			</td>
			<td>
				${vo.blogTitle}
			</td>
			<td>
				${vo.stuName}
			</td>
			<td>
				${vo.blogTime}
			</td>
			<td>${vo.blogReadTimes}</td>
			<td>${vo.blogCommentTimes}</td>
			
			<td>
				<a target="black" href="${vo.blogUrl}" >查看</a>
			</td>
		</tr>
		</c:forEach>
	
	</table>
		
	
	</body>
</html>